<template>
    <div>
         <h1>hooel</h1>
         <li>num:{{ num }}</li>
    </div>
    <input type="button" value="修改" v-on:click="fn">
</template>

<script setup lang="ts">
import { ref } from 'vue'

let num = ref(100);
const fn = () => {
    num.value++;
    console.log(num.value);
}
</script>

<style scoped>

</style>